// @ts-ignore
import adminRoot from '../assets/adminRoot.png';
// @ts-ignore
import root from '../assets/root.png';

export const adminRuleTypeArray = [
  { label: '超级管理员', value: 1 },
  { label: '普通管理员', value: 2 },
  { label: '接单人员', value: 3 },
  { label: '排产人员', value: 4 },
  { label: '仓管人员', value: 5 },
  { label: '人事管理员', value: 6 },
  { label: '出纳人员', value: 7 },
  { label: '录单人员', value: 8 },
  { label: '采购人员', value: 9 },
];

export const addAdminRuleTypeArray = [
  { label: '管理员', value: 2 },
  { label: '接单人员', value: 3 },
  { label: '排产人员', value: 4 },
  { label: '仓管人员', value: 5 },
  { label: '人事管理员', value: 6 },
  { label: '出纳人员', value: 7 },
  { label: '录单人员', value: 8 },
  { label: '采购人员', value: 9 },
];

export const adminRuleTypeObject: any = {
  1: '超级管理员',
  2: '普通管理员',
  3: '接单人员',
  4: '排产人员',
  5: '仓管人员',
  6: '人事人员',
  7: '出纳人员',
  8: '录单人员',
  9: '采购人员',
};

export const adminRuleTypeIcon: any = {
  1: adminRoot,
  2: root,
  3: root,
  4: root,
  5: root,
  6: root,
  7: root,
  8: root,
  9: root,
};

export const postStatusType = [
  { label: '在职', value: '在职' },
  { label: '待离职', value: '待离职' },
  { label: '离职', value: '离职' },
];

export const adminCompanyType = [
  { label: '冠传', value: '冠传' },
  { label: '鑫直达', value: '鑫直达' },
  { label: '信达', value: '信达' },
  { label: '达山', value: '达山' },
];

export const payMethod = [
  { label: '款到发货', value: '款到发货' },
  { label: '货到付款', value: '货到付款' },
  { label: '月结30天', value: '月结30天' },
];

export const adminPriceType = [
  { label: '含税', value: '含税' },
  { label: '不含税', value: '不含税' },
];

/*
 * 订单状态
 * */
export const orderStateEnum: any = {
  1: '库存',
  2: '待排产',
  3: '生产中',
  4: '已生产',
  5: '已销售',
};

export const orderStateEnumType = [
  { label: '库存', value: 1 },
  { label: '待排产', value: 2 },
  { label: '生产中', value: 3 },
  { label: '已生产', value: 4 },
  { label: '已销售', value: 5 },
];
